#include "spdlog/spdlog.h"
#include "CLI11.hpp"

#include "Pipeline.h"

int main(int argc, char *argv[])
{
    CLI::App app{"App description"};

    std::string configFile ;
    app.add_option("-f,--file", configFile, "Require an existing file")->required()->check(CLI::ExistingFile);

    CLI11_PARSE(app, argc, argv);

    SPDLOG_INFO("config file: {}", configFile);

    auto pipeline = std::make_shared<Pipeline>();
    pipeline->buildPipelineByJson(configFile);


    return 0;
}
